import request from './request'

export const getDoctor = () => {
  return request({
    url: 'doctor/',
    method: 'GET'
  })
}
export const addDoctor = (data) => {
  return request({
    url: 'doctor/add/',
    method: 'POST',
    data
  })
}

export const editDoctor = (data) => {
  return request({
    url: 'doctor/update/',
    method: 'post',
    data
  })
}

export const deleteDoctor = (account) => {
  return request({
    url: '/doctor/delete/',
    method: 'POST',
    data: {
      account
    }
  })
}
